<template>
  <a-layout class="layouts-default">
    <a-layout-header class="header">
      顶部logo区域 <a-button @click="onCleanMicroApps">卸载子应用缓存</a-button>
    </a-layout-header>
    <a-layout>
      <a-layout-sider class="left-slider">
        <ScrollContainer> <LayoutMenu></LayoutMenu></ScrollContainer>
      </a-layout-sider>
      <a-layout>
        <!-- 中间区域默认插槽 -->
        <slot />
        <div id="qiankun-content"></div>
      </a-layout>
    </a-layout>
  </a-layout>
</template>

<script setup lang="ts">
import { cleanMicroApps } from "@/store/microApp";
const onCleanMicroApps = () => {
  cleanMicroApps();
  navigateTo("/");
};
</script>

<style scoped lang="less">
.layouts-default {
  min-height: 100%;
}
.header,
.left-slider {
  color: #fff;
}
</style>
